package com.bleet.securitysms;

import android.content.Context;
import android.content.SharedPreferences;

public class SettingStatus {
	/** resource string */
	public static String rs_notsetting = "The setting not exist,please setting app first.";
	public static String rs_updatepwdsuccess = "Update password success.";
	public static String rs_update_wrongpassword = "";
	public static String rs_update_inputpwdagain = "";
	public static String rs_commandErrorInfo = "";
	public static String rs_noserialnumber = "";

	public static boolean isCreatedpwd(Context context) {
		SharedPreferences prefsPrivate=context.getSharedPreferences(Main.PREFS_PRIVATE, Context.MODE_PRIVATE);
		boolean createdpwd = prefsPrivate.getBoolean("createdpwd", false);
		return createdpwd;
	}
	public static String getPassword(Context context) {
		SharedPreferences prefsPrivate=context.getSharedPreferences(Main.PREFS_PRIVATE, Context.MODE_PRIVATE);
		String password = prefsPrivate.getString("password", "");
		return password;
	}
}
